﻿/*********************************************************************************
 *Author:         OnClick
 *Version:        1.0
 *UnityVersion:   2018.3.1f1
 *Date:           2019-03-23
 *Description:    IFramework
 *History:        2018.11--
*********************************************************************************/
using System;
using UnityEngine;
using UnityEditor;
namespace IFramework
{
    [Serializable]
	public class ProjectSetting
	{
        public bool IsUseNameSpace;
        public string NameSpace;
        public string UserName;
        public string Version;

        public Rect rect;
        public ProjectSetting()
        {
            UserName = "OnClick";
            IsUseNameSpace = true;
            NameSpace = "IFramework";
            Version = "1.0";
            rect.height = rect.width = 100;
        }
        public void Draw(int id)
        {
            EditorGUILayout.Space();
            UserName = EditorGUILayout.TextField("UserName", UserName);
            Version = EditorGUILayout.TextField("Version", Version);

            IsUseNameSpace = EditorGUILayout.Toggle("IsUseNameSpace", IsUseNameSpace);
            if (IsUseNameSpace)
            {
                EditorGUILayout.LabelField("NameSpace");
                NameSpace = EditorGUILayout.TextArea(NameSpace);
            }
        }
    }
}
